package com.it.user.service;

import com.github.pagehelper.PageInfo;
import com.it.user.domain.User;
import com.it.user.query.UserQuery;

import java.util.List;

public interface UserService {
    //新增
    void addUser(User user);
    //修改
    void updateUser(User user);
    //删除
    void deleteUser(Long id);
    //查询
    User findOne(Long id);
    //查询所有
    List<User> findAll();
    //分页查询
    PageInfo<User> queryPage(UserQuery userQuery);
    //批量删除
    void batchUsers(Long[] ids);
}
